import comtwo.dao.accountdaoImpl2;
import comtwo.servlet.impl.someserviceImpl;
import comtwo.servlet.someservice;
import comtwo.servlet.sonschool;
import comtwo.servlet.student;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class myapp {
    public static void main(String[] args) {
        ApplicationContext applicationContext=
                new ClassPathXmlApplicationContext("comtwo" +
                        "/beanstotal.xml");
        someservice someservice=
                (comtwo.servlet.someservice) applicationContext.getBean(
                        "some");
        someservice.addUser();
        System.out.println(((accountdaoImpl2)((someserviceImpl)someservice).getAccountdao()).getI());

    }
}
